<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="ECSHOP v2.7.3" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />

<title><?php echo $this->_var['page_title']; ?></title>


<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="<?php echo $this->_var['ecs_css_path']; ?>" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="themes/default/js/jquery-1.7.1.js"></script>


<?php echo $this->smarty_insert_scripts(array('files'=>'common.js,global.js,compare.js')); ?>
</head>
<body>
<?php echo $this->fetch('library/page_header.lbi'); ?>

<div class="blank"></div>
<div class="block clearfix">
	<div class="main_select">
		<ul>
			<li>
				<strong>折扣:</strong>
				<a <?php if ($this->_var['integral_max'] == 0 && $this->_var['integral_min'] == 0): ?>class="here"<?php endif; ?> href="exchange.php">全部</a>
				<a <?php if ($this->_var['integral_max'] == 3000): ?>class="here"<?php endif; ?> href="exchange.php?catid=<?php echo $this->_var['category']; ?>&integral_min=0&integral_max=3000">3000积分以下</a>
				<a <?php if ($this->_var['integral_max'] == 10000 && $this->_var['integral_min'] == 3001): ?>class="here"<?php endif; ?> href="exchange.php?catid=<?php echo $this->_var['category']; ?>&integral_min=3001&integral_max=10000">3001-10000积分</a>
				<a <?php if ($this->_var['integral_max'] == 20000 && $this->_var['integral_min'] == 10001): ?>class="here"<?php endif; ?> href="exchange.php?catid=<?php echo $this->_var['category']; ?>&integral_min=10001&integral_max=20000">10001-20000积分</a>
				<a <?php if ($this->_var['integral_min'] == 20001): ?>class="here"<?php endif; ?> href="exchange.php?catid=<?php echo $this->_var['category']; ?>&integral_min=20001&integral_max=0">20001积分以上</a>
			</li>
			<!--
			<li class="li_top">
				<strong>分类:</strong>
				<?php if ($this->_var['categories']): ?>
				<?php $_from = $this->_var['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cat');if (count($_from)):
    foreach ($_from AS $this->_var['cat']):
?>
				<a <?php if ($this->_var['cat']['id'] == $this->_var['category']): ?>class="here"<?php endif; ?> href="exchange.php?cat_id=<?php echo $this->_var['cat']['id']; ?>&integral_min=<?php echo $this->_var['integral_min']; ?>&integral_max=<?php echo $this->_var['integral_max']; ?>" style="color: #000000"><?php echo $this->_var['cat']['name']; ?></a>
				<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
				<?php endif; ?>
			</li>-->
		</ul>
	</div>
	<div class="main_search">
	<form action="exchange.php" method="get" name="advancedSearchForm">
		<ul>
			<li>	
				<span class="right">
					<?php echo $this->_var['lang']['pager_1']; ?><b><?php echo $this->_var['pager']['record_count']; ?></b> <?php echo $this->_var['lang']['pager_2']; ?>
					<?php if ($this->_var['pager']['page_prev']): ?><a class="prev" href="<?php echo $this->_var['pager']['page_prev']; ?>&integral_min=<?php echo $this->_var['integral_min']; ?>&integral_max=<?php echo $this->_var['integral_max']; ?>"><?php echo $this->_var['lang']['page_prev']; ?></a><?php endif; ?>
					<?php if ($this->_var['pager']['page_next']): ?><a class="next" href="<?php echo $this->_var['pager']['page_next']; ?>&integral_min=<?php echo $this->_var['integral_min']; ?>&integral_max=<?php echo $this->_var['integral_max']; ?>"><?php echo $this->_var['lang']['page_next']; ?></a><?php endif; ?>
				</span>
				<label>关键字:</label>
				<input type="hidden" name="integral_min" value="<?php echo $this->_var['integral_min']; ?>"/>
				<input type="hidden" name="integral_max" value="<?php echo $this->_var['integral_max']; ?>"/>
				<input type="hidden" name="cat_id" value="<?php echo $this->_var['category']; ?>"/>

				<input class="keyword_txt" type="text" name="keywords" maxlength="20"/>
				<input class="search_btn" type="submit" value="搜索"/>
				<span class="clear"></span>
			</li><!--
			<li class="li_top">
				<span>排序:</span>
				<a href="#">销量</a><a href="#">价格</a><a href="#">点击量</a>
			</li>-->
		</ul>
	</form>
	</div>
</div>

<div class="blank5"></div>


<div class="block main_list">
	<div class="main_list">
		<div class="rs_top">
			<span class="right"><!--<a href="">更多></a>--></span>
			<strong>精品兑换</strong></div>
		<div class="rs_content">
			<div class="left"><a href="#"><img style="height:502px;" src="themes/default/images/index/ad_01.jpg" /></a></div>
			<div class="right">
			<ul>
			  <?php $_from = $this->_var['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');$this->_foreach['goods_list'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['goods_list']['total'] > 0):
    foreach ($_from AS $this->_var['goods']):
        $this->_foreach['goods_list']['iteration']++;
?>
			  <?php if ($this->_var['goods']): ?>
				<li <?php if (($this->_foreach['goods_list']['iteration'] - 1) == 3): ?>class="border_r_none"<?php endif; ?>><a class="thumb_img" href="<?php echo $this->_var['goods']['url']; ?>"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" alt="<?php echo $this->_var['goods']['goods_name']; ?>" /></a><p><?php echo $this->_var['goods']['goods_name']; ?></p><p><span>积分:&nbsp;&nbsp;<?php echo $this->_var['goods']['exchange_integral']; ?></span></p></li>
			  <?php endif; ?>
			  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			</ul>
			
			</div>
		</div>
	</div>

</div>


<div class="blank"></div>
<?php echo $this->fetch('library/page_footer.lbi'); ?>
</body>
</html>
